<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 

class Comanda extends CI_Model {

	//ATRIBUTOS=============================================
	private $iIdComanda;
	
	//GETS E SETS===========================================
	public function get($atributo) {
		return $this->$atributo;
	}
	public function set($atributo, $valor) {
		$this->$atributo = $valor;
	}
	//======================================================
	
	/**
	 * @name
	 * @param
	 * @param
	 * @return
	 * @see
	 * @since
	 * @author
	 */
	public function criar($aComanda){
		$sSql = "
			INSERT INTO
				tb_comanda
			VALUES (
				''
			)";
	
		return $this->db->query($sSql);
	}
	
	/**
	 * @name
	 * @param
	 * @param
	 * @return
	 * @see
	 * @since
	 * @author
	 */
	public function ler(){
		$sSql = "
			SELECT
				''
			FROM
				''
		";
		
		$oResultado = $this->db->query($sSql);
		return json_encode($oResultado->result());
	}
	
	/**
	 * @name
	 * @param
	 * @param
	 * @return
	 * @see
	 * @since
	 * @author
	 */
	public function atualizar(){
	
	}
	
	/**
	 * @name
	 * @param
	 * @param
	 * @return
	 * @see
	 * @since
	 * @author
	 */
	public function deletar(){
	
	}
}

/* End of file Comanda.php */